package com.hanamaki.basic.struct;

public class DoWhile {
    public static void main(String[] args) {

//         1 +………………+100 和

        int i = 1;
        int sum = 0;
        do {
            sum += i;
            i++;
        } while (i <= 100);

        System.out.println(sum);

    }
}
